#include <iostream>
#include "Vector.hpp"

class Node
{
public:
   Node(int val = 0)
      :_val(val)
   {}

public:
   int _val;
};

int main()
{
 //  Vector<int> vec(5, 6);
 // for (int i = 0; i < vec.size(); ++i) {
 //   // std::cout << vec[i] << std::endl;
 //   vec[i] = i;
 // }
 //  Vector<int>::iterator iter = vec.begin();
 //  while (iter != vec.end()) {
 //     std::cout << *iter << std::endl;
 //     ++iter;
 //  }
   
   Vector<Node> vec(5);
   Vector<Node>::iterator iter = vec.begin();
   while (iter != vec.end()) {
      iter->_val = 1;
      ++iter;
   }

    iter = vec.begin();
   while (iter != vec.end()) {
      std::cout << iter->_val << std::endl;
      ++iter;
   }


   
   return 0;
}
